﻿using ServiceCore.DbContext;
using ServiceCore.Entity.Core;
using ServiceCore.Entity.Dto.Report;
using ServiceCore.Entity.Model;
using ServiceCore.Entity.View;

namespace ServiceCore.Service
{
    /// <summary>
    /// 数据服务
    /// </summary>
    public partial class ReportService : SqlsugarServices<RecordInfo>
    {
        /// <summary>
        /// 标签统计报表 
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public BaseParam<RecordInfo, List<TagSumDto>> Tag_Report(BaseParam<RecordInfo, List<TagSumDto>> arg)
        {
            arg = Tag_Report_Verify(arg);
            if (string.IsNullOrEmpty(arg.ErrorMsg) == false)
                return arg;

            Tag_Report_Record(arg);
            Tag_Report_Color(arg);

            return arg;
        }
    }
}
